package cn.circle.system.util;


import java.util.ResourceBundle;
/**
 * 读取配置文件
 * @param propertyName(属性名称)
 * @param packageName(配置文件名)
 */
public class ConfigProperty {

	public static String getProperty(String propertyName,String packageName){
		ResourceBundle bundle = ResourceBundle.getBundle(packageName);
		return bundle.getString(propertyName);
	}
	
	public static boolean getPollStatus(String propertyName,String packageName){
		ResourceBundle bundle = ResourceBundle.getBundle(packageName);
		return Boolean.parseBoolean(bundle.getString(propertyName));
	}
	
}
